﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Company.Master" AutoEventWireup="true"
    CodeBehind="CompanyChangPass.aspx.cs" Inherits="E_Shop.CompanyChangPass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="frmChangePass" action="ChangePass.aspx">
    <asp:UpdatePanel ID="upinfor" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div style="width: 100%" class="stuff3">
                <h3 class="mto_title">
                    Change Your Password</h3>
                <div align="right">
                </div>
                <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                    <tr>
                        <td style="text-align: right; padding-right: 5px;">
                            <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Old Password:
                        </td>
                        <td style="width: 391px">
                            <asp:TextBox ID="txtOldpass" runat="server" class="inp-form" 
                                TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOldpass"
                                ErrorMessage="nhập mật khẩu hiện tại"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; padding-right: 5px;">
                            <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />New Pass:
                        </td>
                        <td style="width: 400px">
                            <asp:TextBox ID="txtNewPass" runat="server" class="inp-form" 
                                TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPass"
                                Display="Dynamic" ErrorMessage="nhập mật khẩu mới"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtNewPass"
                                Display="Dynamic" ErrorMessage="mật khẩu ít nhất 6 ký tự" ValidationExpression="^([\S\s]{6,50})$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; padding-right: 5px;">
                            <img alt="" class="style3" src="Images/Shared/icon_mandatory.gif" />Comfirm New
                            Password:
                        </td>
                        <td style="width: 391px">
                            <asp:TextBox ID="txtconfirm" runat="server" class="inp-form" 
                                TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtconfirm"
                                ErrorMessage="Nhập lại mật khẩu" Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtNewPass"
                                ControlToValidate="txtconfirm" Display="Dynamic" ErrorMessage="nhập lại mật khảu không đúng"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; padding-right: 5px;">
                        </td>
                        <td >
                            <asp:Label ID="lberror" runat="server" Text="" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; padding-right: 5px;">
                        </td>
                        <td class="style2">
                            <asp:Button ID="btnchagepass" runat="server" Text="" OnClick="btnchagepass_Click"
                                class="form-submit" />
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</asp:Content>
